package com.lebang.mapper;

import com.lebang.domain.MemberLoginRecord;
import com.lebang.example.MemberLoginRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * MemberLoginRecordMapper继承基类
 */
@Mapper
public interface MemberLoginRecordMapper extends MyBatisBaseDao<MemberLoginRecord, Long, MemberLoginRecordExample> {
    int selectByMemberIdAndTime(@Param("imei") String imei, @Param("time") int time);


    int selectByTime(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end, @Param("time") int time);

    int countByMemberIdTime(@Param("time") int time, @Param("memberId") String memberId);
}